extends Node2D
class_name HitEffect


@onready var particle = $CPUParticles2D

	
func init(position):
	global_position = position
	particle.emitting = true
	particle.finished.connect(onFinished)
	

func onFinished():
	queue_free()
